﻿package {
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.events.*;
	import flash.text.*

	/**
	 * For output 
	 **/
	public class outtext extends Sprite {
		public var out_text:TextField;
		public var lable_text:TextField;
		public function outtext() {
			init();
		}
		//set output property

		private function init():void {
			//lable
			lable_text=new TextField();
			lable_text.text="顯示區";
			lable_text.y=55;
			
			//output area
			out_text = new TextField();
			out_text.multiline = true;
			out_text.border=true;
			out_text.width=250;
			out_text.height=200;
			out_text.y=80;
			out_text.type=TextFieldType.DYNAMIC;
			
			addChild(out_text);
			addChild(lable_text);
		}
		
		//show input information to output
		public function showInfo(str:String):void{
			out_text.text= str;
		}

	}

}